home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 3672 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.3 KB  |  36 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: cs.vu.nl!irmen
  3. From: irmen@cs.vu.nl (Irmen de Jong)
  4. Subject: Re: File sizes
  5. Nntp-Posting-Host: flits.cs.vu.nl
  6. References: <4gd9pu$cpr@mn5.swip.net> <WXQ7y*5+f@yaps.rhein.de> <4gjs20$i68@btmpjg.god.bel.alcatel.be>
  7. Sender: news@cs.vu.nl
  8. Organization: Dept. of Computer Science, Vrije Universiteit Amsterdam
  9. Date: Fri, 23 Feb 1996 09:21:13 GMT
  10. X-Newsreader: TIN [version 1.2 PL2]
  11. Message-ID: <Dn81zD.H5M.0.-s@cs.vu.nl>
  12.  
  13. On 23 Feb 1996 07:57:52 GMT barnhoorn@nlev00 (barnhoorn@nlev00) wrote:
  14.  
  15. : In article <WXQ7y*5+f@yaps.rhein.de>, arno@yaps.rhein.de (Arno Eigenwillig) writes:
  16. : |> In article <4gd9pu$cpr@mn5.swip.net>, Daniel Hallgren writes:
  17. : |> 
  18. : |> > What's the best way of finding out the size of a file? Do I have to use 
  19. : |> > Examine()
  20. : |> 
  21. : |> Indeed.
  22. : |> 
  23.  
  24. : ..or do it in ANSI-C, by opening the file, seeking to the end of it
  25. : and getting the number of bytes returned from fseek().
  26.  
  27. : Jaco.
  28.  
  29. Aaaargh why does nobody use fstat()? Seeking to the end of a many-megabyte-file
  30. can take ages, especially on floppy. fstat() (and dos.library/Examine()) are
  31. instantaneous, AFAIK.
  32.  
  33. --
  34. / Irmen de Jong (email: irmen@cs.vu.nl WWW: http://www.cs.vu.nl/~irmen/)  \
  35. \                 ``Nothing lasts forever'' -- Species                    /
  36.